package com.example.yuanboot.model.entity.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

@Data
@TableName(value = "sys_mail_log")
public class SysMailLog {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "from_mail")
    private String fromMail;

    /**
     * 收件人邮箱
     */
    @TableField(value = "to_mails")
    private String toMails;

    /**
     * 抄送邮箱
     */
    @TableField(value = "cc_mails")
    private String ccMails;

    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 邮件内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 邮件附件，“,”间隔
     */
    @TableField(value = "files")
    private String files;

    /**
     * 状态
     */
    @TableField(value = "state")
    private Byte state;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    public static final String COL_ID = "id";

    public static final String COL_FROM_MAIL = "from_mail";

    public static final String COL_TO_MAILS = "to_mails";

    public static final String COL_CC_MAILS = "cc_mails";

    public static final String COL_TITLE = "title";

    public static final String COL_CONTENT = "content";

    public static final String COL_FILES = "files";

    public static final String COL_STATE = "state";

    public static final String COL_CREATE_TIME = "create_time";
}